[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
BACKUP IEXP
Function
Move the cursor backward a specified number of columns without
going past column 1.
Syntax
BACKUP numcols
numcols - An integer expression of the number of columns to move backward.
Valid values are 1 through 79.
Remarks
This statement will move the cursor backward, nondestructively, a
specified number of columns. It will work with or without ANSI. If ANSI
is available (as reported by the ANSION() function) then it will use an
ANSI positioning command; otherwise it will use the specified number
of backspace characters. ANSI is usually faster, but backspace
characters will get the job done. Note that you cannot use this
function to move beyond column 1; to do so would require ANSI. So, if the
cursor is already in column 1 this statement will have no effect. And
if the cursor is in column 80 the maximum you could move backward would
be 79 (column 80 - 79 columns = column 1).
Examples
PRINT "Rolling dice -- "
FOR i = 1 TO 10
LET d1 = RANDOM(5)+1
LET d2 = RANDOM(5)+1
PRINT d1,"-",d2
BACKUP 3
NEXT
NEWLINE
See Also:
ANSION()
ANSIPOS
FORWARD
GETX()
GETY()
GRAFMODE()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson